package com.ktjy.pojo.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;

/**
 * 字典数据表实体类
 *
 * @author LILIBO
 * @since 2025-06-18
 */
@Tag(name = "字典数据表", description = "字典数据表数据")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("`sys_dict_data`")
public class SysDictData implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 字典编码ID
     */
    @Schema(description = "字典编码ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 字典类型
     */
    @Schema(description = "字典类型")
    private String dictType;

    /**
     * 字典标签
     */
    @Schema(description = "字典标签")
    private String dictLabel;

    /**
     * 字典键值
     */
    @Schema(description = "字典键值")
    private String dictValue;

    /**
     * 是否默认 0-否;1-是
     */
    @Schema(description = "是否默认 0-否;1-是")
    private Integer isDefault;

    /**
     * 字典排序
     */
    @Schema(description = "字典排序")
    private Integer dictSort;

    /**
     * 样式属性（其他样式扩展）
     */
    @Schema(description = "样式属性（其他样式扩展）")
    private String cssClass;

    /**
     * 表格回显样式
     */
    @Schema(description = "表格回显样式")
    private String listClass;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 状态 0-正常;1-禁用
     */
    @Schema(description = "状态 0-正常;1-禁用")
    private Integer status;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private String createTime;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    private String modifyTime;

    /**
     * 删除标记 0-正常;1-删除
     */
    @Schema(description = "删除标记 0-正常;1-删除")
    private Integer deleteFlag;

    /**
     * 带参构造方法
     */
    public SysDictData(String dictType, String dictLabel, String dictValue, Integer isDefault, Integer dictSort, String cssClass, String listClass, String remark, Integer status, String createTime, String modifyTime, Integer deleteFlag) {
        this.dictType = dictType;
        this.dictLabel = dictLabel;
        this.dictValue = dictValue;
        this.isDefault = isDefault;
        this.dictSort = dictSort;
        this.cssClass = cssClass;
        this.listClass = listClass;
        this.remark = remark;
        this.status = status;
        this.createTime = createTime;
        this.modifyTime = modifyTime;
        this.deleteFlag = deleteFlag;
    }

}
